import Koa from 'koa'
import SSR from './ssr'
import staticKoa from 'koa-static'
import path from 'path'

const app = new Koa()

app.use(staticKoa(
    path.join(__dirname, '../../dist/public')
))

app.use(SSR)

app.listen(3000, ()=>{
    console.log('http://localhost:3000')
})